package view;

import view.views.AbstractView;
import view.views.GameResultView;
import view.views.GameView;
import view.views.LoadingView;
import view.views.LyricsListView;
import view.views.LyricsRepositoryView;
import view.views.MainView;
import view.views.GameMusicListView;
import view.views.MusicRepositoryView;
import view.views.RecordMusicListView;
import view.views.RecordResultView;
import view.views.RecordView;
import view.views.SplashView;

public class ViewFactory {

	public static AbstractView createView(int tag){
		switch (tag) {
		case ViewTags.SPLASH:
			return new SplashView();
			
		case ViewTags.MAIN:
			return new MainView();
			
		case ViewTags.MUSIC_REPO:
			return new MusicRepositoryView();
			
		case ViewTags.LYRICS_REPO:
			return new LyricsRepositoryView();
			
		case ViewTags.GAME:
			return new GameView();
			
		case ViewTags.RECORD:
			return new RecordView();
			
		case ViewTags.LOADING:
			return new LoadingView();
			
		case ViewTags.GAME_MUSIC_LIST:
			return new GameMusicListView();
			
		case ViewTags.LYRICS_LIST:
			return new LyricsListView();
			
		case ViewTags.GAME_RESULT:
			return new GameResultView();
			
		case ViewTags.RECORD_RESULT:
			return new RecordResultView();
			
		case ViewTags.RECORD_MUSIC_LIST:
			return new RecordMusicListView();
			
		default:
			return null;
		}
	}
}
